package com.bootdo.cms.dao;

import com.bootdo.cms.domain.CmsFileDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author SiMan
 * @date 2019/12/24 1:06
 */
public interface CmsFilieDao {

	List<CmsFileDO> getAll();

	CmsFileDO selectById(String id);

	Integer insert(CmsFileDO fileDO);

	Integer remove(String id);

	List<CmsFileDO> selectByChannelId(@Param("channelId") String type);

	List<CmsFileDO> list(Map<String, Object> map);

	int count(Map<String, Object> map);

	List<CmsFileDO> selectBySearch(@Param("fileName") String fileName);
}
